<?php

/**
 * Tabela do texto inicial.
 *
 * @author Fernando Dias Oliveira <rodox17@gmail.com>
 * @package lore
 * @subpackage model
 */

class caf07 extends Zend_Db_Table_Abstract  
{
	protected $_table   = "caf07";
	protected $_primary = "caf07_cod";
	
	public function getAll($ped)
	{
		$db = $this->getAdapter();
		
		return $db->fetchAll("SELECT * FROM caf07 
							left join caf08 on(caf07_cod = caf08_cod_ing AND caf08_cod_ped = $ped)");
	}
}

?>
